package com.blacktea.creationalpatterns.prototypepattern;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

/**
 * @description:
 * @author: black tea
 * @date: 2023/3/19 19:08
 */
@Configuration
public class ProtoTypeConfig {

    @Bean
    @Scope("prototype")
    public Prototype prototype(){
        return new Prototype("prototype");
    }
}
